package com.szsh.aiot.hsm.service.impl;

import java.util.List;
import com.szsh.aiot.hsm.domain.IFlowDevice;
import com.szsh.aiot.hsm.mapper.IFlowDeviceMapper;
import com.szsh.aiot.hsm.service.IIFlowDeviceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-09-25
 */
@Service
public class IFlowDeviceServiceImpl implements IIFlowDeviceService
{
    @Autowired
    private IFlowDeviceMapper iFlowDeviceMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param serno 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public IFlowDevice selectIFlowDeviceBySerno(Long serno)
    {
        return iFlowDeviceMapper.selectIFlowDeviceBySerno(String.valueOf(serno));
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param iFlowDevice 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<IFlowDevice> selectIFlowDeviceList(IFlowDevice iFlowDevice)
    {
        return iFlowDeviceMapper.selectIFlowDeviceList(iFlowDevice);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param iFlowDevice 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertIFlowDevice(IFlowDevice iFlowDevice)
    {
      //  iFlowDevice.setCreateTime(DateUtils.getNowDate());
        return iFlowDeviceMapper.insertIFlowDevice(iFlowDevice);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param iFlowDevice 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateIFlowDevice(IFlowDevice iFlowDevice)
    {
        return iFlowDeviceMapper.updateIFlowDevice(iFlowDevice);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param sernos 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteIFlowDeviceBySernos(String sernos)
    {
        return iFlowDeviceMapper.deleteIFlowDeviceBySernos(sernos);
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param serno 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteIFlowDeviceBySerno(Long serno)
    {
        return iFlowDeviceMapper.deleteIFlowDeviceBySerno(serno);
    }
}
